import { AudioClip, JsonAsset, Prefab, SpriteFrame, Vec3 } from "cc";

/**
 * 游戏全局数据
 */
export class GlobalData {

    //游戏分数
    static GameScore: number = 0;

    //金币数量
    static GameCoin: number = 0;

    //模式游戏初始化时间
    static GameInitControlTime: number = 10 * 60;
    //游戏操作时间
    static GameControTime: number = 3 * 60;

    //游戏结束
    static GameOver: boolean = false;

    //是否是广告
    static IsAd: boolean = false;

}

/**
 * 资源列表
 */
export const GAME_RES = {
    BundleName: "GAME_RES",//资源包名称
    Asset: {//资源列表
        Prefabs: { path: "Prefab", type: Prefab },
        Sounds: { path: "Sound", type: AudioClip },
        SpriteFrames: { path: "SpriteFrame", type: SpriteFrame },
        Jsons: { path: "Json", type: JsonAsset }
    }
}

/**
 * 游戏预设体
 */
export const GAME_PREFAB = {
    PopSingleBallSkin: 'PopSingleBallSkin',
    Coin: "Coin"
}

/**
 * 游戏场景
 */
export const GAME_SCENE = {
    LoginScene: "LoginScene",
    GameScene: "GameScene"
}

/**
 * 方向
 */
export const DIRECTION = {
    UP: "Up",
    DOWN: "Down",
    LEFT: "Left",
    RIGHT: "Right"
}

/**
 * 游戏弹窗
 */
export const GAME_POP = {
    PopSet: "PopSet",
    PopSkin: "PopSkin",
    PopAd: "PopAd",
    PopEnd: "PopEnd",
    PopBuy: 'PopBuy',
    PopStart: 'PopStart'
}

/**
 * 游戏顶层弹窗
 */
export const GAME_TOP = {
    TopPromptText: 'TopPromptText'
}

/**
 * 音效分类
 */
export const SOUND_TYPE = {
    Button: "Button",
}

/**
 * 碰撞刚体名称
 */
export const COLLISION_NAME = {
    Floor: 1,
    Prop: 8,
    Board: 16,
    Net: 32,
    Score: 64
}






